package mybatis.mapper;

import mybatis.pojo.Emp;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Yancy xiao
 * @create 2022-11-11 21:04
 */
public interface EmpMapper {
    Emp getEmpByEmpId(@Param("empId") Integer empId);

    Emp getDeptByEmpId(@Param("empId") Integer empId);

    Emp getEmpAndDeptById(@Param("empId") Integer empId);

    List<Emp> getDeptAndEmpBysteptwo(@Param("deptId") Integer deptId);
}
